<!-- 搜索 -->
<template>
  <div class="wrap">
    <el-form v-model="searchform" label-width="120px">
      <el-row>
        <el-col :xs="24" :sm="24" :lg="8">
          <el-form-item label="日期选择:">
            <el-date-picker
							style="width:100%"
              v-model="searchform.dateRange"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            >
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8">
          <el-form-item label="统计排名:">
            <el-input type="number" min="1" placeholder="请输入" v-model="searchform.rank"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :xs="24" :sm="24" :lg="8">
          <el-form-item label="描述信息:">
            <el-input type="textarea" :rows="1" placeholder="请输入描述信息" v-model="searchform.describe"></el-input>
          </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :lg="8">
          <el-form-item label="终端用户:">
            <el-select v-model="searchform.user" clearable placeholder="请选择" style="width:100%">
              <el-option label="全部" value="0"></el-option>
              <el-option label="张三" value="1"></el-option>
              <el-option label="李四" value="2"></el-option>
              <el-option label="王五" value="3"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
				<el-col :xs="24" :sm="24" :lg="8">
          <el-button type="primary" class="submit">查询</el-button>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      searchform: {}
    };
  },
  //生命周期 - 创建完成（访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {}
};
</script>
<style>
/* @import url(); 引入css类 */
.submit{
	margin-left: 20px;
}
input[type=number] {
    -moz-appearance:textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
</style>